package core4.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import core4.pojo.User;

@Controller
public class BookController {
	
	
	
	@RequestMapping("/book")
	public String index(Model model) {
		
		User user=new User();
		user.setUserName("keke");
		user.setId(1);
		model.addAttribute(user);
		System.out.println(123);
		return "form";
	}
	
	@GetMapping("/login")
	public String login() {
		return "login";
	}
	@GetMapping("/hello")
	public String hello() {
		return "hello";
	}
	
	
	
}
